package com.zhuangjie.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuangjie.user.entity.AddressBook;
import com.zhuangjie.user.vo.AddressBookVO;

import java.util.List;

/**
 * <p>
 * 收货地址表 服务类
 * </p>
 *
 * @author zhuangjie
 * @since 2023-10-15
 */
public interface AddressBookService extends IService<AddressBook> {

    void saveAddress(AddressBook addressBook);


    List<AddressBookVO> preferredAddressList(Long shopId) throws Exception;

    void removeUserAddressBookById(Long addressBookId);

    AddressBook preferredAddress(Long shopId) throws Exception;

    List<AddressBook> getUserAddressList();

    AddressBook getUserAddressBookById(Long addressBookId);

    AddressBook preferredAddress(Double longitude, Double latitude,Double BusinessScope);
}
